#ifndef __CTGATexture__H
#define __CTGATexture__H

#include <psptypes.h>

class CTGATexture
{
private:
	int		type;
	bool		swizzled;
	unsigned int	imageWidth;
	unsigned int	imageHeight;
	unsigned char	*image;

public:
	CTGATexture( void );
	~CTGATexture( void );

	int Width( void )		{ return imageWidth; }
	int Height( void )		{ return imageHeight; }
	bool Swizzled( void )		{ return swizzled; }
	unsigned char* Image( void )	{ return image; }

	bool LoadTGA( char *filename );
	void Swizzle( void );
        void FreeImage( void );

};

#endif